import 'package:flutter/material.dart';

class PPTabbarController extends ChangeNotifier {
  /// 更多选项距离顶部距离
  double? top;

  /// 是否显示更多选项弹框
  bool isShow = false;

  /// 屏幕高度
  double? screenHeight;

  /// 展开更多图层
  OverlayEntry? entry;

  /// 选中的角标
  int selectIndex = 0;

  void setSelectIndex(int index) {
    selectIndex = index;
    notifyListeners();
  }

  void refreshBadge() {
    notifyListeners();
  }

  void show() {
    isShow = true;
    notifyListeners();
  }

  void hide() {
    isShow = false;
    notifyListeners();
  }
}
